<template>
  <a-modal v-model="visible" title="拨打电话">
    <call-phone></call-phone>
  </a-modal>
</template>

<script>
  import CallPhone from '@/components/CallPhone'
  export default {
    props: {
      callshow: {
        type: Boolean,
        defalut: false
      }
    },
    name: 'Call',
    components: {
      CallPhone
    },
    data () {
      return {
        visible: true
      }
    },
    methods: {
      showCall () {
        this.visible = true
      },
      closeCall () {
        this.visible = false
      },
      toggle () {
        this.visible = !this.visible
      }
    }
  }
</script>

<style scoped>
</style>
